import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import { registerMicroApps, start } from 'qiankun' // 新增部分，导入qiankun的两个方法

const apps = [{
  name: 'vueApp', // 子应用的名称
  entry: 'http://192.168.1.22:2022/',
  container: '#vue',
  activeRule: '/vue'
}]

registerMicroApps(apps)
start()

// 阻止生产环境下的提示
// Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
